<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>소셜커머스 모음 :: Social Curator</title>
	<link href="{{ static_path.css }}/main.css" rel="stylesheet" type="text/css"></link>
	<script type="text/javascript" src="{{ static_path.js }}/jquery-1.7.min.js"></script>
</head>
<body>
	<div align="center">
	  <div align="left"  style="width:954px;"> 
			<!-- Header start-->
			<div class="header">
				<!-- Logo -->
				<div align="center" style="margin:20px 0px 10px 0px;"><img src="{{ static_path.images }}/logo.png"></div>					
				<!-- Top menu -->
				<div id="topmenu">
					<ul id="topmenu_navi">
						<li><a href="/today_coupon">오늘의 쿠폰</a></li>
						<li><a href="/today_tiled">오늘의 쿠폰(타일)</a></li>
						<li><a class="menu_on" href="/openapi">Open API</a></li>
					</ul>
					<div id="topmenu_search">
						<div style="float:left">
							<img src="{{ static_path.images }}/topmenu_magnify.png">
						</div>
						<input type="text" id="topmenu_search_box" name="keyword" value="{{keyword}}">
					</div>
				</div>
			</div>
			<!-- Header end -->			
			<!-- Content start -->
			<div class="content">
				<div id="deal_list">
<h1>Search API</h1>
<h3>1. 요청 URL(Request URL)</h3>
URL: http://[HOSTDOMAIN].appspot.com/searcher<br><br>
<h3>2. 요청 변수(Parameter List)</h3>
<TABLE BORDER="0" CELLPADDING="5" CELLSPACING="0" WIDTH="70%">
	<TR>
	<TH BGCOLOR="#F87431">
		<FONT COLOR=#FFFFFF SIZE="2"><B>요청 변수 이름<br>(Parameter name)</B></FONT>
	</TH>
	<TH BGCOLOR="#F87431">
		<FONT COLOR=#FFFFFF SIZE="2"><b>설명(Description)</b></FONT>
	</TH>
	</TR>
	<TR>
		<TD BGCOLOR="#FBB117" >
			<FONT COLOR=white SIZE="2">action</FONT>
		</TD>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">exact(default, 현재 정확히 일치하는 키워드만 조회)<br>extend(확장 키워드까지 조회)</FONT>
		</TD>
	<TR>
	<TR>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">keyword</FONT>
		</TD>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">검색 키워드를 지정(required)</FONT>
		</TD>
	<TR>
	<TR>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">area</FONT>
		</TD>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">검색할 지역을 지정(not required, default: 전국)</FONT>
		</TD>
	<TR>
	<TR>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">providerid</FONT>
		</TD>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">소셜 업체(not required, default: all)</FONT>
		</TD>
	<TR>
	<TR>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">startt</FONT>
		</TD>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">결과의 시작 offset을 지정(not required, default: 0)</FONT>
		</TD>
	<TR>
	<TR>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">limit</FONT>
		</TD>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">결과 집합의 개수를 지정(not required, default: 10)</FONT>
		</TD>
	<TR>
	<TR>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">keyword</FONT>
		</TD>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">검색 키워드를 지정(required)</FONT>
		</TD>
	<TR>
	<TR>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">expried</FONT>
		</TD>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">판매 기간이 지난 아이템을 포함할지 유무<br>(1 = 포함, 0 = 미포함, not required, default: 1)</FONT>
		</TD>
	<TR>
</TABLE>
<br><h3>3. Example</h3>
<UL type=circle>
<LI>키워드: http://localhost:8080/searcher?keyword=렌터카</LI>
<LI>키워드&지역: http://localhost:8080/searcher?keyword=렌터카&area=제주</LI>
<LI>키워드&업체: http://localhost:8080/searcher?keyword=렌터카&providerid=2</LI>
<LI>키워드&확장: http://localhost:8080/searcher?keyword=제주&action=extend</LI>
</UL>

<br>
<h1>User Managing API</h1>
<h3>1. 요청 URL(Request URL)</h3>
URL: http://[HOSTDOMAIN].appspot.com/usermanager<br><br>
<h3>2. 요청 변수(Parameter List)</h3>
<TABLE BORDER="0" CELLPADDING="5" CELLSPACING="0" WIDTH="70%">
	<TR>
	<TH BGCOLOR="#F87431">
		<FONT COLOR=#FFFFFF SIZE="2"><B>요청 변수 이름<br>(Parameter name)</B></FONT>
	</TH>
	<TH BGCOLOR="#F87431">
		<FONT COLOR=#FFFFFF SIZE="2"><b>설명(Description)</b></FONT>
	</TH>
	</TR>
	<TR>
		<TD BGCOLOR="#FBB117" >
			<FONT COLOR=white SIZE="2">action</FONT>
		</TD>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">
				getlist: 사용자 목록을 출력<br>
				add: 신규 사용자를 추가<br>
				del: 기존 사용자를 삭제<br>
				modify: 기존 사용자 정보를 변경<br>
				adddepos: 예치금을 추가<br>
				whtidrawdepos: 예치금을 차감<br>
				getentry: 공동구매 참여 목록을 포함하여 개별 사용자의 모든 정보를 출력<br>
			</FONT>
		</TD>
	<TR>
	<TR>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">start</FONT>
		</TD>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">Start offset (default: 0)</FONT>
		</TD>
	<TR>
	<TR>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">limit</FONT>
		</TD>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">Item count to be fetch (default: 10)</FONT>
		</TD>
	<TR>
	<TR>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">loginid</FONT>
		</TD>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">사용자 ID (required)</FONT>
		</TD>
	<TR>
	<TR>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">email</FONT>
		</TD>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">이메일(required)</FONT>
		</TD>
	<TR>
	<TR>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">deposit</FONT>
		</TD>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">초기/변경할 예치금(required)</FONT>
		</TD>
	<TR>
</TABLE>
<br><h3>3. Example</h3>
<UL type=circle>
<LI>사용자 추가: http://localhost:8080/usermanager?action=add&loginid=test007&email=test007@gmail.com&deposit=1000</LI>
<LI>사용자 예치금 추가: http://localhost:8080/usermanager?action=adddepos&loginid=test007&deposit=3000</LI>
<LI>사용자 목록 조회: http://localhost:8080/usermanager?action=getlist</LI>
<LI>사용자 삭제: http://localhost:8080/usermanager?action=del&loginid=test007</LI>
</UL>


<br>
<h1>Group Purchase API</h1>
<h3>1. 요청 URL(Request URL)</h3>
URL: http://[HOSTDOMAIN].appspot.com/gp<br><br>
<h3>2. 요청 변수(Parameter List)</h3>
<TABLE BORDER="0" CELLPADDING="5" CELLSPACING="0" WIDTH="70%">
	<TR>
	<TH BGCOLOR="#F87431">
		<FONT COLOR=#FFFFFF SIZE="2"><B>요청 변수 이름<br>(Parameter name)</B></FONT>
	</TH>
	<TH BGCOLOR="#F87431">
		<FONT COLOR=#FFFFFF SIZE="2"><b>설명(Description)</b></FONT>
	</TH>
	</TR>
	<TR>
		<TD BGCOLOR="#FBB117" >
			<FONT COLOR=white SIZE="2">action</FONT>
		</TD>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">
				getlist: 공동구매 목록을 출력<br>
				getentry: 공동구매 상품의 세부 항목을 출력<br>
				djoin: 예치금(deposit)을 걸고 공동구매 참여<br>
				njoin: 예치금(deposit) 없이 공동구매 참여<br>
				leave: 참가한 공동 구매에서 탈퇴<br>
				makenew: 새로운 공동 구매를 생성<br>
				check: 신청하거나 참가한 상품이 Launching되었는지 확인<br>
			</FONT>
		</TD>
	<TR>
	<TR>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">start</FONT>
		</TD>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">Start offset (default: 0)</FONT>
		</TD>
	<TR>
	<TR>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">limit</FONT>
		</TD>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">Item count to be fetch (default: 10)</FONT>
		</TD>
	<TR>
	<TR>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">itemkey</FONT>
		</TD>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">공동구매 상품의 key (required)</FONT>
		</TD>
	<TR>
	<TR>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">title</FONT>
		</TD>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">공동 구매 제목 (required)</FONT>
		</TD>
	<TR>
	<TR>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">trigger_userid</FONT>
		</TD>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">공동 구매를 신청한 아이디 (required)</FONT>
		</TD>
	<TR>
	<TR>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">deposit</FONT>
		</TD>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">초기/변경할 예치금(required)</FONT>
		</TD>
	<TR>
	<TR>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">description</FONT>
		</TD>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">공동 구매에 대한 설명(required)</FONT>
		</TD>
	<TR>
	<TR>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">photo_url</FONT>
		</TD>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">이미지 사진 URL</FONT>
		</TD>
	<TR>
	<TR>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">lprice</FONT>
		</TD>
		<TD BGCOLOR="#FBB117">
			<FONT COLOR=white SIZE="2">인터넷 최저가</FONT>
		</TD>
	<TR>
</TABLE>
<br><h3>3. Example</h3>
<UL type=circle>
<LI>공동구매 목록: http://localhost:8080/gp?action=getlist</LI>
<LI>공동구매 세부항목: http://localhost:8080/gp?action=getentry&itemkey=[key]</LI>
</UL>


		    	</div>
		    	<div id="lastPostsLoader"></div>				    
		    </div>
			</div>			
			<!-- Content end -->		
			<!-- Bottom start -->		
			<div class="bottom">
				<img src="{{ static_path.images }}/bottom_line.png"><br>
				<div align="center">
				 	<b>Copyright © deprice4u 2011.</b><br>
					※ deprice4u는 상품에 직접 관여하지 않으며 상품 주문, 배송 및 환불의 의무와 책임은 각 판매업체에 있습니다.	
				</div>
			</div>
			<!-- Bottom end -->		
		</div>
	</div>
	
	
	<!-- Google Adsense -->	
	<div id="ScrollMenu" style="position:absolute; left:1316.5px; top:130px; width:160px; z-index:1; height: 600px;">
	<script type="text/javascript"><!--
google_ad_client = "ca-pub-4117634760413699";
/* deprice4u */
google_ad_slot = "1097098886";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
			
	</div>
	<script language=javascript>
		   <!--
				var yScrollThumb;
				var yMenuTop;
				
				function CheckMenuPosition()
				{
				  yScrollThumb = 970 + (document.body.clientWidth-970) /2;
				  
				  if (yScrollThumb != ScrollMenu.style.left)
				  {
				    ScrollMenu.style.left = yScrollThumb;
				  }
				  yScrollThumb = document.body.scrollTop + 40;
				  yMenuTop = parseInt ( ScrollMenu.style.top, 10); 
				
				  if ( yMenuTop == yScrollThumb) 
				  { 
				    TimeOutInterval = 500;
				  }
				  else
				  {
				    yMenuTop = ( yMenuTop + yScrollThumb) / 2;
				
				    if ( 130 >= yMenuTop)
				    {
				      ScrollMenu.style.top = 130;
				      TimeOutInterval = 500;
				   }
				    else
				    {
				      ScrollMenu.style.top = yMenuTop;
				      TimeOutInterval = 10; 
				     }
				  }
				  setTimeout ("CheckMenuPosition()", TimeOutInterval);
				}
				
				function OnLoad()
				{
				  CheckMenuPosition();
				  return true;
				}
				OnLoad();
		  //-->
		  </script>
	<!-- Google Adsense -->	
</body>